package com.qf.myapplicationqqqqqqqqqqqqqqqqqq;

import android.app.Application;

import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMOptions;

/**
 * Created by Administrator on 2017/1/5.
 */

public class MainApplication extends Application {
    public MainApplication() {
        super();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //环信初始化
        EMOptions options=new EMOptions();
        options.setAcceptInvitationAlways(true);//好友添加不需要验证


      EMClient emClient=EMClient.getInstance();
        emClient.init(this,options);
        if (BuildConfig.DEBUG){
            emClient.setDebugMode(true);

        }


    }
}
